package com.weishi.common.enums;

public enum TrainingProgramEnum {

    WATERPROJECT("special_training_water","水上专项训练"),
    LANDSPECIFICTRAININGDYNAMOMETER("land_specific_training_dynamometer","陆上专项训练"),
    LANDSTRENGTHTRAINING("land_strength_training","陆上力量训练"),
    AEROBICTRAININGLAND("aerobic_training_land","陆上有氧训练"),
    REGENERATIONTRAINING("regeneration_training","再生训练"),
    INJURYTREATMENT("injury_treatment","伤病治疗"),
    PHYSICALPREPARATIONTRAINING("physical_preparation_training","身体准备训练"),
    NOTRAINING("no_training","无训练"),


    /**
     * 身体准备训练二级科目 字典值
     */
    BALL_GAMES("ball_games" , "球类活动"),
    UINARMED_ACTIVITIES("uinarmed_activities" , "徒手活动"),
    DYNAMIC_STRETCHING("dynamic_stretching" , "动态拉伸"),
    OTHER("other" , "其他"),
    DYNAMIC_STRETCH_IN_PLACE("dynamic_stretch_in_place" , "原地动态拉伸"),
    WARM_UP("warm_up" , "行进间准备活动"),




    ;

    private final String key;

    private final String name;

    public String getKey() {
        return key;
    }

    public String getName() {
        return name;
    }

    TrainingProgramEnum(String key, String name)
    {
        this.key = key;
        this.name = name;
    }

    public static String getValue(String key) {
        TrainingProgramEnum[] trainingProgramEnums = values();
        for (TrainingProgramEnum trainingProgramEnum : trainingProgramEnums) {
            if (trainingProgramEnum.getKey().equals(key)) {
                return trainingProgramEnum.getName();
            }
        }
        return null;
    }
}
